<?php

/**
 * Description of Helpers_Base
 *
 * @author a.novikov
 */
abstract class Helpers_Base extends Zend_View_Helper_Abstract {

	/**
	 * @return string $path
	 */
	abstract function getViewPath();

	protected function render($param = NULL) {
		return $this->view->render($this->getViewPath($param));
	}

	protected function getRequest() {
		return Zend_Controller_Front::getInstance()->getRequest();
	}

	protected function _getParam($paramName, $default = null) {
		return $this->getRequest()->getParam($paramName, $default);
	}
}